package com.mt.api.core.config.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * Created by plover on 2018/6/1.
 */
@Service
@Aspect
public class ControllerAopLog  extends AbstractAopLog{

    private static final Logger logger = LoggerFactory.getLogger(ControllerAopLog.class);

    @Override
    protected Logger getLogger() {
        return logger;
    }

    @Pointcut(value = "execution(* com.mt.api.modules.controller.*Controller.*(..))")
    @Override
    public void allMethods() {

    }

    @Override
    protected boolean getLogOpen() {
        return true;
    }
}
